import { createStore } from 'vuex'

export default createStore({
  state: {
    counter:0
  },
  getters: {
    getCounter(state){
      return state.counter > 0 ? state.counter : '数据异常'
    }
  },
  mutations: {
  },
  actions: {
  },
  modules: {
  }
})
